package machinery.state;

import machinery.Machinery;

/**
 * 状态模式：工作状态实现
 */
public class WorkingState implements MachineryState {
    @Override
    public void handle(Machinery machinery) {
        System.out.println(machinery.getName() + " 处于工作状态，正在执行作业");
    }
    
    @Override
    public String getStateName() {
        return "工作状态";
    }
} 